package com.xxx.feignclients;

import com.xxx.doc.CourseDoc;
import com.xxx.fallback.CourseDocFeignClientFallback;
import com.xxx.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-es", fallbackFactory = CourseDocFeignClientFallback.class)
public interface CourseDocFeignClient {

    @PostMapping("/coursedoc/save")
    public JSONResult save(@RequestBody CourseDoc courseDoc);
}
